package com.anrongtec.zcpt.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import com.anrongtec.zcpt.R;
import com.anrongtec.zcpt.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;

public class NotificationContentActivity extends BaseActivity {

    @BindView(R.id.tv_data)
    TextView tvData;
    @BindView(R.id.tv_content)
    TextView tvContent;
    @BindView(R.id.tv_notification_title)
    TextView tvNotificationTitle;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setTitleShow(false);
        setContentView(R.layout.activity_notification_content);
        ButterKnife.bind(this);
        initTopBar(this, true, "通知通告详情", "");
        getData();
    }

    private void getData() {
        Intent intent = getIntent();
        String stitle = intent.getStringExtra("title");
        String stime = intent.getStringExtra("time");
        String scontent = intent.getStringExtra("content");
        tvNotificationTitle.setText(stitle);
        tvData.setText(stime);
        tvContent.setText(scontent);
    }
}
